//
//  JPFDataPickerView.h
//  JPFUI
//
//  Created by JPFei on 2019/3/14.
//  Copyright © 2019 nmo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JPFUIKit/JPFToolbar.h>
#import <JPFCoreKit/JPFTreeModel.h>

NS_ASSUME_NONNULL_BEGIN

@interface JPFDataPickerView : UIButton


@property (copy, nonatomic) void(^selectedBlock)( JPFTreeModel * _Nullable item);
/** 工具器 */
@property (nonatomic, strong, nullable)JPFToolbar *toolBar;

- (instancetype)initWithData:(nullable NSArray<JPFTreeModel*> *)arrTree layerCount:(NSInteger)layerCount;

- (void)loadAddressData;


//显示
- (void)show;

/*!
 * @brief 对应组选中的元素
 * @param component  分组
 * @author jpf
 */
- (JPFTreeModel *)selectItem4Component:(NSInteger)component;


@end

NS_ASSUME_NONNULL_END
